// $Id: User.java 31 2011-09-21 17:36:34Z huijzer@gmail.com $
package lime.model;

import lime.Activator;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.eclipse.ui.plugin.AbstractUIPlugin;

public class User extends RepositoryObject implements IWorkbenchAdapter {

	public User(String objectId, String objectName) {
		super(objectId, objectName);
	}

	
	@Override
	public Object[] getChildren(Object o) {
		return new Object[]{};
	}

	@Override
	public ImageDescriptor getImageDescriptor(Object object) {
		return AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/user.png");
	}

	@Override
	public String getLabel(Object o) {
		return getObjectName();
	}

	@Override
	public Object getParent(Object o) {
		return null;
	}

}
